package webstu

import (
	"log"
	"net/http"
)

//https://pkg.go.dev/net/http

func Web() {
	http.HandleFunc("/hello", func(w http.ResponseWriter, r *http.Request) {
		//fmt.Println(r.Header)
		ms := []byte("hello web")
		_, err := w.Write(ms)
		if err != nil {
			log.Fatal(err)
		}
	})
	http.ListenAndServe(":8080", nil)
}
